package rsexplorer.rstree;

public class BasicFieldTreeNode extends FieldContainerTreeNode {

    private static final String SPLITTER = "   :   ";
    private String fieldString;

    public BasicFieldTreeNode(Object userObject, Object value) {
        super(userObject, value);
        fieldString = userObject.toString();
        setUserObject(fieldString + SPLITTER + value);
        this.fieldObject = value;
    }

    public void update(Object userObject, Object fieldObject) {
        setUserObject(userObject + SPLITTER + fieldObject);
    }
}
